package apple.pangzi.bio;

import java.net.Socket;
import java.util.Date;

public class SocketClient extends Socket {

    private Long id;

    private Socket socket;

    private Date createTime;

    public SocketClient(Socket socket) {
        this.id = JedisUtils.increase("socket:id");
        this.socket = socket;
        this.createTime = new Date();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Socket getSocket() {
        return socket;
    }

    public void setSocket(Socket socket) {
        this.socket = socket;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
